//
//  UIViewController+NavBar.m
//  OvsWork
//
//  Created by 郭壮 on 16/4/21.
//  Copyright © 2016年 Red Persimmon. All rights reserved.
//

#import "UIViewController+NavBar.h"

@implementation UIViewController (NavBar)

-(void)showNavBar
{
    [self.navigationController.navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
    [self.navigationController.navigationBar setShadowImage:nil];
}

-(void)hideNavBar
{
    [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
    [self.navigationController.navigationBar setShadowImage:[UIImage new]];
}

@end
